<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        var sum = 0;
        for (var i = 0; i < 10; i++) {
            var arr = [34, 56, 23, 24, 56, 67, 8, 54, 54, 45]
            sum += arr[i];
        }
        var average = sum / 10;
        console.log(average);
        for (var i = 0; i < 10; i++) {
            var arr = [34, 56, 23, 24, 56, 67, 8, 54, 54, 45];
            if (average <= arr[i]) {
                console.log(arr[i]);
            }
        }
    </script>
</head>

<body>

</body>

</html>